package r21310.chap05.d1111;

public class Student  {
    private String name;
    private int number;

    public Student() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Student(String name, int number) {
        this.name = name;
        this.number = number;
    }
    @Override
    public String toString(){
        return this.name+this.number;
    }
}


